package com.tony.java8.optionalTest;

import java.util.Optional;

/**
 * @author tonywang
 * @date 8/6/2018
 */
public class DisplayFeatures {
    private String size; // In inches
    //private ScreenResolution resolution;
    private Optional<ScreenResolution> resolution;

    public DisplayFeatures(String size, Optional<ScreenResolution> resolution){
        this.size = size;
        this.resolution = resolution;
    }

    public String getSize() {
        return size;
    }
    public Optional<ScreenResolution> getResolution() {
        return resolution;
    }
}
